package org.gd.rjdbc.interfaces;

import org.gd.rjdbc.exceptions.RJDBCException;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface RJDBCListener {

    public <T> T parseOne(ResultSet rs, Class<T> clazz)
            throws RJDBCException;

    public <T> List<T> parseAll(ResultSet rs, Class<T> clazz)
            throws RJDBCException;
}
